home *** CD-ROM | disk | FTP | other *** search
/ NetObjects Fusion 7 / Fusion7.iso / NetObjects Fusion / data1.cab / Fsi / Resources / message.js < prev    next >
Encoding:
Text File  |  2002-10-18  |  1.3 KB  |  37 lines

  1. function warning(text, mode, dontShow, addSize)
  2. {
  3.     var app = new ActiveXObject("FSI.FSIApplication");
  4.     if (app.GetSystemVar(dontShow) == 'true')
  5.         return true;
  6.     
  7.     args = new Array(text, mode, dontShow, addSize);
  8.     return window.showModalDialog("../resources/warning.html", args,
  9.                 "status:no;help:no;border:thin;dialogWidth:300px;dialogHeight:150px;center:yes;scroll:no;");
  10. }
  11.  
  12. function stopwarning(text, addSize)
  13. {
  14.     var app = new ActiveXObject("FSI.FSIApplication");
  15.     args = new Array(text, addSize);
  16.     return window.showModalDialog("../resources/stopwarning.html", args,
  17.                 "status:no;help:no;border:thin;dialogWidth:300px;dialogHeight:150px;center:yes;scroll:no;");
  18. }
  19.  
  20. function message(text, mode, dontShow, addSize)
  21. {
  22.     var app = new ActiveXObject("FSI.FSIApplication");
  23.     if (app.GetSystemVar(dontShow) == 'true')
  24.         return true;
  25.     
  26.     args = new Array(text, mode, dontShow, addSize);
  27.     window.showModalDialog("../resources/message.html", args,
  28.                 "status:no;help:no;border:thin;dialogWidth:300px;dialogHeight:150px;center:yes;scroll:no;");
  29. }
  30.  
  31. function showwarning(text, mode, addSize)
  32. {
  33.     args = new Array(text, mode, addSize);
  34.     return window.showModalDialog("../resources/showwarning.html", args,
  35.                 "status:no;help:no;border:thin;dialogWidth:300px;dialogHeight:150px;center:yes;scroll:no;");
  36. }
  37.